package com.ymttest.database.sqlwapper.fqlorder;

import java.util.List;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.fqlorder.FqlShop;

public class FqlShopWrapper {
	
	SqlManager manager;

	public FqlShopWrapper() {
		manager = new SqlManager("fqlordersync");
	}

	@SuppressWarnings("unchecked")
	public FqlShop selectByPrimaryKey(Long id) {

		FqlShop fqlShop = new FqlShop();
		List<FqlShop> result = manager
				.getSelectResults(
						"com.ymttest.database.mapping.fqlorder.FqlShopMapper.selectByPrimaryKey",
						id);
		manager.commit();

		if (result.size() > 0) {
			fqlShop = result.get(0);
		}

		return fqlShop;
	}
	
	public static void main(String[] args) {
		
		FqlShopWrapper wrapper = new FqlShopWrapper();
		
		System.out.println(wrapper.selectByPrimaryKey(1L).getPartner_id());
	}
}
